#!/bin/bash
# First written by Bryan Killett on 2008-08-13.
# Last modified on 2009-02-14

#./gaia.out $1 & &> log_gaia.txt
./internals_temp3.sh &> log_gaia3.txt

#gaiapid=$!
#echo "*****************gaia.out is running; its pid is $gaiapid."

#wait $gaiapid
#echo "*****************gaia.out was closed; its pid was $gaiapid."

#This script was written and chmod'd by gaia.out so that log_gaia.txt is copied
#to the output folder that gaia made when gaia.out is completely finished.
./copy_gaia_log3.sh

#Run create_plots.pro in IDL with the output folder name
#relative to gaiafolder stored in run.pro
cd ../IDL
idl run3.pro &> ../c/log_idl3.txt

#This script was written and chmod'd by gaia.out so that log_idl.txt is copied
#to the output folder that gaia made when create_plots is completely finished.
cd ../c
./copy_idl_log3.sh
